<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'readerMainMenu.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <center>
  		<h1>查询借书情况</h1>
    	<form action="borrowInfo!displayBorrowInfo" method="post">
  			<table >
	  			<tr align="center">
	  				<th>请输入您的ID：</th>
	  				<td><input type="text" name="reader.readerId" ></td>
	  				<td>	
		  			<input  type="submit" value="查询"/>
  					</td>
	  			</tr>
  			</table>
  		</form>
  		
  	<table border="1" width="60%"  border="0" cellpadding="3" cellspacing="1" >
		<tr>
			<th>图书</th>
			<th>价格</th>
			<th>借书日期</th>
			<th>操作</th>
		</tr>
		<s:iterator value="data" status="st" var="b">
		<tr align="center" >
			<td><s:property value="#b.book.bookName"/></td>
			<td><s:property value="#b.book.price"/></td>
			<td><s:property value="#b.borrowTime"/></td>
			<td>
				<a href="queryBook!queryBook_byId?book.id=${ut.id }">续借</a>
			</td>
		</tr>
		</s:iterator>
	</table>
	</center>
  </body>
</html>
